package common;

import java.text.SimpleDateFormat;
import java.time.LocalDate;

/**
 * 时间相关 通用类
 * Created by lx on 2017/7/28.
 */
public class DateUtils {

    public static final String YEAR="yyyy-MM-dd HH:mm:ss";
    public static final String DAY="yyyy-MM-dd";


    public static void main(String[] args) {
        LocalDate date = LocalDate.now();
        System.out.println("date : " + date);
        System.out.println("year : " + date.getYear() +", month : " + date.getMonthValue() +",day : " + date.getDayOfMonth());

        LocalDate date2 =  LocalDate.of(2017,06,25);
    }

}
